package pers.gxm.factorymethod.framework;

public  abstract class Factory {
    public final Product create(int number,String owner){
        Product product = createProduct(number,owner);
        registerProduct(product);
        return product;
    }
    public abstract Product createProduct(int number,String owner);
    public abstract void registerProduct(Product product);
}
